Optimal. Leaf size=54 \[ \frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )+\frac{b x^2}{8 c^3}-\frac{b \tanh ^{-1}\left (c x^2\right )}{8 c^4}+\frac{b x^6}{24 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03915, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {6097, 275, 302, 206} \[ \frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )+\frac{b x^2}{8 c^3}-\frac{b \tanh ^{-1}\left (c x^2\right )}{8 c^4}+\frac{b x^6}{24 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6097
Rule 275
Rule 302
Rule 206
Rubi steps
\begin{align*} \int x^7 \left (a+b \tanh ^{-1}\left (c x^2\right )\right ) \, dx &=\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )-\frac{1}{4} (b c) \int \frac{x^9}{1-c^2 x^4} \, dx\\ &=\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )-\frac{1}{8} (b c) \operatorname{Subst}\left (\int \frac{x^4}{1-c^2 x^2} \, dx,x,x^2\right )\\ &=\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )-\frac{1}{8} (b c) \operatorname{Subst}\left (\int \left (-\frac{1}{c^4}-\frac{x^2}{c^2}+\frac{1}{c^4 \left (1-c^2 x^2\right )}\right ) \, dx,x,x^2\right )\\ &=\frac{b x^2}{8 c^3}+\frac{b x^6}{24 c}+\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )-\frac{b \operatorname{Subst}\left (\int \frac{1}{1-c^2 x^2} \, dx,x,x^2\right )}{8 c^3}\\ &=\frac{b x^2}{8 c^3}+\frac{b x^6}{24 c}-\frac{b \tanh ^{-1}\left (c x^2\right )}{8 c^4}+\frac{1}{8} x^8 \left (a+b \tanh ^{-1}\left (c x^2\right )\right )\\ \end{align*}
Mathematica [A] time = 0.016156, size = 78, normalized size = 1.44 \[ \frac{a x^8}{8}+\frac{b x^2}{8 c^3}+\frac{b \log \left (1-c x^2\right )}{16 c^4}-\frac{b \log \left (c x^2+1\right )}{16 c^4}+\frac{b x^6}{24 c}+\frac{1}{8} b x^8 \tanh ^{-1}\left (c x^2\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.022, size = 66, normalized size = 1.2 \begin{align*}{\frac{{x}^{8}a}{8}}+{\frac{b{x}^{8}{\it Artanh} \left ( c{x}^{2} \right ) }{8}}+{\frac{b{x}^{6}}{24\,c}}+{\frac{b{x}^{2}}{8\,{c}^{3}}}+{\frac{b\ln \left ( c{x}^{2}-1 \right ) }{16\,{c}^{4}}}-{\frac{b\ln \left ( c{x}^{2}+1 \right ) }{16\,{c}^{4}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.952859, size = 93, normalized size = 1.72 \begin{align*} \frac{1}{8} \, a x^{8} + \frac{1}{48} \,{\left (6 \, x^{8} \operatorname{artanh}\left (c x^{2}\right ) + c{\left (\frac{2 \,{\left (c^{2} x^{6} + 3 \, x^{2}\right )}}{c^{4}} - \frac{3 \, \log \left (c x^{2} + 1\right )}{c^{5}} + \frac{3 \, \log \left (c x^{2} - 1\right )}{c^{5}}\right )}\right )} b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.99897, size = 135, normalized size = 2.5 \begin{align*} \frac{6 \, a c^{4} x^{8} + 2 \, b c^{3} x^{6} + 6 \, b c x^{2} + 3 \,{\left (b c^{4} x^{8} - b\right )} \log \left (-\frac{c x^{2} + 1}{c x^{2} - 1}\right )}{48 \, c^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 29.8785, size = 58, normalized size = 1.07 \begin{align*} \begin{cases} \frac{a x^{8}}{8} + \frac{b x^{8} \operatorname{atanh}{\left (c x^{2} \right )}}{8} + \frac{b x^{6}}{24 c} + \frac{b x^{2}}{8 c^{3}} - \frac{b \operatorname{atanh}{\left (c x^{2} \right )}}{8 c^{4}} & \text{for}\: c \neq 0 \\\frac{a x^{8}}{8} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20634, size = 105, normalized size = 1.94 \begin{align*} \frac{1}{16} \, b x^{8} \log \left (-\frac{c x^{2} + 1}{c x^{2} - 1}\right ) + \frac{1}{8} \, a x^{8} + \frac{b x^{6}}{24 \, c} + \frac{b x^{2}}{8 \, c^{3}} - \frac{b \log \left (c x^{2} + 1\right )}{16 \, c^{4}} + \frac{b \log \left (c x^{2} - 1\right )}{16 \, c^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]